package cn.shyouchi.wuguanjia.android.ui.event.labor;

import java.util.List;

/**
 * Created by Eenie on 2016/11/24 at 13:44
 * Email: 472279981@qq.com
 * Des:
 */

public class PersonRank {


    /**
     * resultCode : 0
     * resultMessage : [{"id":2,"user_id":"3","user_name":"1111","info":[{"service":{"id":53,"servicesname":"常日班","starttime":"09:00:00","endtime":"17:00:00","time":8},"day":"1"},{"service":{"id":55,"servicesname":"白班","starttime":"11:00:00","endtime":"23:00:00","time":12},"day":"2"},{"service":{"id":56,"servicesname":"夜班","starttime":"01:00:00","endtime":"12:00:00","time":11},"day":"3"},{"service":{"id":57,"servicesname":"临时班","starttime":"15:00:00","endtime":"19:00:00","time":4},"day":"4"},{"service":{"id":58,"servicesname":"午班","starttime":"11:00:00","endtime":"14:00:00","time":3},"day":"5"}]}]
     */

    private int resultCode;
    private List<ResultMessageBean> resultMessage;
    private Hours hours;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultMessageBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ResultMessageBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public Hours getHours() {
        return hours;
    }

    public void setHours(Hours hours) {
        this.hours = hours;
    }

    public static class Hours {

        private int actual;

        private int approved;

        private int remaininghours;

        private int workinghours;

        public int getActual() {
            return actual;
        }

        public void setActual(int actual) {
            this.actual = actual;
        }

        public int getApproved() {
            return approved;
        }

        public void setApproved(int approved) {
            this.approved = approved;
        }

        public int getRemaininghours() {
            return remaininghours;
        }

        public void setRemaininghours(int remaininghours) {
            this.remaininghours = remaininghours;
        }

        public int getWorkinghours() {
            return workinghours;
        }

        public void setWorkinghours(int workinghours) {
            this.workinghours = workinghours;
        }
    }


    public static class ResultMessageBean {
        /**
         * id : 2
         * user_id : 3
         * user_name : 1111
         * info : [{"service":{"id":53,"servicesname":"常日班","starttime":"09:00:00","endtime":"17:00:00","time":8},"day":"1"},{"service":{"id":55,"servicesname":"白班","starttime":"11:00:00","endtime":"23:00:00","time":12},"day":"2"},{"service":{"id":56,"servicesname":"夜班","starttime":"01:00:00","endtime":"12:00:00","time":11},"day":"3"},{"service":{"id":57,"servicesname":"临时班","starttime":"15:00:00","endtime":"19:00:00","time":4},"day":"4"},{"service":{"id":58,"servicesname":"午班","starttime":"11:00:00","endtime":"14:00:00","time":3},"day":"5"}]
         */

        private int id;
        private int user_id;
        private String user_name;
        private List<InfoBean> info;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public String getUser_name() {
            return user_name;
        }

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public List<InfoBean> getInfo() {
            return info;
        }

        public void setInfo(List<InfoBean> info) {
            this.info = info;
        }

        public static class InfoBean {
            /**
             * service : {"id":53,"servicesname":"常日班","starttime":"09:00:00","endtime":"17:00:00","time":8}
             * day : 1
             */

            private ServiceBean service;
            private int day;

            public ServiceBean getService() {
                return service;
            }

            public void setService(ServiceBean service) {
                this.service = service;
            }

            public int getDay() {
                return day;
            }

            public void setDay(int day) {
                this.day = day;
            }

            public static class ServiceBean {
                /**
                 * id : 53
                 * servicesname : 常日班
                 * starttime : 09:00:00
                 * endtime : 17:00:00
                 * time : 8
                 */

                private int id;
                private String servicesname;
                private String starttime;
                private String endtime;
                private int time;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getServicesname() {
                    return servicesname;
                }

                public void setServicesname(String servicesname) {
                    this.servicesname = servicesname;
                }

                public String getStarttime() {
                    return starttime;
                }

                public void setStarttime(String starttime) {
                    this.starttime = starttime;
                }

                public String getEndtime() {
                    return endtime;
                }

                public void setEndtime(String endtime) {
                    this.endtime = endtime;
                }

                public int getTime() {
                    return time;
                }

                public void setTime(int time) {
                    this.time = time;
                }
            }
        }
    }
}